import request from '@/router/axios';
/**
 * 新增或编辑API
 */
export const addOrUpdateApi = (row) => {
  return request({
    url: '/api/mes-qms/apaas-api/submit',
    method: 'post',
    data: row
  });
};

/**
 * 根据APIid查询API信息
 */
export const getApiInfo = (id) => {
  return request({
    url: '/api/mes-qms/apaas-api/detail',
    method: 'get',
    params: {
      id
    }
  });
};
